<?php include("includes/session.php"); ?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title><?php echo $lang['PAGE_TITLE_PROFILE_CHANGE_PASS']; ?></title>
<?php include("header.php"); ?>
	<br /><br />
	<center>
	<table cellpadding="0" cellspacing="0" width="80%" class="border">
	<tr>
		<td>
		<?php
		if(isset($_SESSION['changepass']))
		{
			if($_SESSION['changepass'])
			{
				echo "<center><b>New Password Accepted</b></center><br />";
				echo "<center>Please check your e-mail to review your new password.</center>";
			}
			else
			{
				echo "<center><b>Sorry Change Password Failed</b></center><br />";
				echo "<center>Please try again later</center>";
			}
			unset($_SESSION['changepass']);
		}
		else
		{
		?>
		<center><h2><?php echo $lang['PROFILE_CHANGE_PASS_CHANGE']; ?></h2></center>
		<center>
		<form method="post" action="includes/process.php">
		<table cellpadding="3" cellspacing="0">
		<tr>
			<td><b><?php echo $lang['PROFILE_CHANGE_PASS_OLDPASS']; ?></b></td>
			<td><input type="password" name="oldpass" value="<?php echo $form->value("oldpass"); ?>" /></td>
			<td><?php echo $form->error("oldpass"); ?></td>
		</tr>
		<tr>
			<td><b><?php echo $lang['PROFILE_CHANGE_PASS_NEWPASS']; ?></b></td>
			<td><input type="password" name="newpass" value="<?php echo $form->value("newpass"); ?>" /></td>
			<td><?php echo $form->error("newpass"); ?></td>
		</tr>
		<tr>
			<td><b><?php echo $lang['PROFILE_CHANGE_PASS_NEWPASS2']; ?></b></td>
			<td><input type="password" name="confirmnewpass" value="<?php echo $form->value("confirmnewpass"); ?>" /></td>
			<td><?php echo $form->error("confirmnewpass"); ?></td>
		</tr>
		<tr>
			<td><input type="hidden" name="subChangePass" value="1" /></td>
			<td align="right"><input type="submit" value="Change Password" /></td>
		</tr>
		</table>
		</form>
		</center>
		<?php
		}
		?>
		<br />
		</td>
	</tr>
	</table>
	</center>
<?php include("footer.php"); ?>